package com.ershi.spring.component.lifestyle;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * @author 二十
 * @since 2021/10/14 1:06 上午
 */
@Component
public class Yellow implements InitializingBean, DisposableBean {

	public Yellow(){
		System.out.println("Yellow...构造器");
	}
	@Override
	public void destroy() throws Exception {
		System.out.println("DisposableBean...destroy");
	}

	@Override
	public void afterPropertiesSet() throws Exception {
		System.out.println("InitializingBean...afterPropertiesSet");
	}
}
